"""
报告策略模块初始化

自动注册所有报告策略到服务中。
"""

from .report_strategies import WorkerReportStrategy, EquipmentReportStrategy, ProjectReportStrategy
from ..service.report_service import get_report_service

def register_all_strategies():
    """注册所有报告策略"""
    service = get_report_service()
    
    # 注册工人报告策略
    service.register_generator('worker', WorkerReportStrategy())
    
    # 注册设备报告策略
    service.register_generator('equipment', EquipmentReportStrategy())
    
    # 注册项目报告策略
    service.register_generator('project', ProjectReportStrategy())

# 自动注册策略
register_all_strategies()